<?php

use yii\helpers\Html;
use yii\widgets\ActiveField;
use kartik\widgets\ActiveForm;
use backend\models\Category;
use common\helpers\Tree;

/* @var $this yii\web\View */
/* @var $model backend\models\search\ArticleSearch */
/* @var $form yii\widgets\ActiveForm */
?>

<?php
$form = ActiveForm::begin(
    [
        'action'  => ['index'],
        'method'  => 'get',
        'options' => ['class' => 'form-inline', 'data-pjax' => true],
    ]
); ?>
<!--<div class="form-group">-->
<?= $form->field($model, 'id')->textInput(['placeholder' => yii::t('app', 'ID'), 'style' => 'width:52px'])
    ->label(false) ?>
<?= $form->field($model, 'title')->textInput(['placeholder' => "标题"])->label(false) ?>
<?= $form->field($model, 'article_category_id')->dropDownList(Category::getCategoriesName(), ['prompt' => '全部分类'])->label(false) ?>
<?= Html::submitButton('<i class="fa fa-search"></i>', ['class' => 'btn btn-primary btn-flat']) ?>
<!--</div>-->

<?php ActiveForm::end(); ?>
